namespace Magecrawl {
    using System;
    using System.Collections.Generic;
    using System.Linq;

    public enum Direction {
        None,

        North,

        Northeast,

        East,

        Southeast,

        South,

        Southwest,

        West,

        Northwest
    }

    public static class DirectionUtils {
        private static readonly Random random = new Random( ( int ) DateTime.Now.Ticks );

        public static IEnumerable< Direction > RandomDirections() { return Directions().OrderBy( r => random.Next() ); }

        public static IEnumerable< Direction > Directions() { return new[] { Direction.North, Direction.Northeast, Direction.East, Direction.Southeast, Direction.South, Direction.Southwest, Direction.West, Direction.Northwest }; }
    }
}
